package com.yjps.house.model;

import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="t_house")
public class House extends BaseModel {

    //房间详细(1210)
    @Column(name = "house_detail",length = 20,nullable = false)
    private String detail;

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    //楼盘id
    @Column(name = "building_id",length =11 ,nullable = false)
    private int buildingId;

    public int getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(int buildingId) {
        this.buildingId = buildingId;
    }

    //标题
    @Column(name = "house_title",length = 50,nullable = false)
    private String title;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    //描述
    @Column(name = "house_description",length = 200,nullable = false)
    private String description;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    //图片url，多张图片以"；"分开
    @Column(name ="house_image_url",length = 50,nullable = false)
    private String imageUrl;

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @Column(name = "house_area",length = 20,nullable = false)
    private String area;

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    //价格 xx/月(租)或者 xx(卖)
    @Column(name = "house_price",length = 20,nullable = false)
    private String price;

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    //售出类型 1：卖 0：租
    @Column(name = "house_sell_Type",length = 1,nullable = false)
    private int sellType;

    public int getSellType() {
        return sellType;
    }

    public void setSellType(int sellType) {
        this.sellType = sellType;
    }

    //是否精品房源 1：是 0：不是
    @Column(name = "house_is_boutique",length = 1,nullable = false)
    private int isBoutique;

    public int getIsBoutique() {
        return isBoutique;
    }

    public void setIsBoutique(int isBoutique) {
        this.isBoutique = isBoutique;
    }

    //是否认证房源 1：是 0：不是
    @Column(name = "house_is_authentication",length = 1,nullable = false)
    private int isAuthentication;

    public int getIsAuthentication() {
        return isAuthentication;
    }

    public void setIsAuthentication(int isAuthentication) {
        this.isAuthentication = isAuthentication;
    }

    //状态 1：审核 0：未审核
    @Column(name = "house_state",length = 1,nullable = false)
    private int state;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
